<cfapplication 
	name="confluence" 
	sessionmanagement="true" 
	clientmanagement="false">
	
	<cftry>
		<cfset setApplication()>
		<cfif structkeyexists(url,'reloadapp') eq true or not structkeyexists(application,'constants')>
			<cfset setApplication()>
		</cfif>
		<cfcatch type="any">
			<cfdump var="#cfcatch#">
		</cfcatch>
	
	</cftry>

<cffunction name="setApplication" access="private">
	<cftry>
		<cfset application.constants = createobject('component','com.DAC.manager.config.constants').getConstants()>	
		<cfset application.managerController = createobject('component','com.DAC.manager.controller.ManagerController')>
		

		<cfcatch type="any">
			<cfdump var="#cfcatch#" label="application.cfm"><cfabort>	
		</cfcatch>
	</cftry>

</cffunction>